package com.micrograils.domain

import grails.gorm.annotation.Entity
import org.grails.datastore.gorm.GormEntity

@Entity
class Author implements GormEntity<Author> {

    String name
    int age

    static constraints = {
        name blank: false, maxSize: 20
        age min: 0
    }

}
